// //--------------函数表达式------------------
// console.log(FunctionExpression);//undefined
// var FunctionExpression = function(){};
// console.log(FunctionExpression);//[Function: FunctionExpression]

// //-------------函数声明--------------------
// console.log(FunctionDeclaration);//[Function: FunctionDeclaration]
// function FunctionDeclaration(){};
// console.log(FunctionDeclaration);//[Function: FunctionDeclaration]

// //-------------类表达式--------------------
// console.log(ClassExpression);//undefined
// var ClassExpression = class {};
// console.log(ClassExpression);//[Function: ClassExpression]    

// //-------------类声明----------------------
// // console.log(ClassDeclaration);//ReferenceError: Cannot access 'ClassDeclaration' before initialization
// class ClassDeclaration {};
// console.log(ClassDeclaration);//[Function: ClassDeclaration]   

// {
//     function FunctionDeclaration(){}
//     class ClassDeclaration{}
// }
// console.log(FunctionDeclaration);//[Function: FunctionDeclaration]
// console.log(ClassDeclaration);//ReferenceError: ClassDeclaration is not defined

// //空类定义，有效
// class Foo {}

// //有构造函数，有效
// class Bar {
//     constructor();
// }

// //有获取函数的类，有效

// class Baz {
//     get myBaz(){
//         return 'hello world'
//     }
// }

// //有静态方法的类，有效
// class Qux{
//     static myQux(){}
// }

// let Person = class PersonName{
//     callName(){
//         console.log(Person.name,PersonName.name);//PersonName PersonName
//     }
// }
// let person = new Person();
// person.callName();
// console.log(Person.name);//PersonName
// console.log(PersonName.name);//ReferenceError: PersonName is not defined
